@import "../../src/style/vars";
@import "../../src/style/index";

html, body {
  height: 100%;
  line-height: 1.5em;
  min-width: 1200px;
}

.app-layout {
  background: $--color-white;
  
  .xdh-layout__wrapper > .xdh-layout__west {
    position: relative;
  }

  &__main {
    height: calc(100vh - 100px);
    overflow: hidden;
  }

  &__content {
    overflow: auto;
    height: calc(100% - 71px);

    h2 {
      margin-top: 0;
    }
  }
}

.xdh-layout--fixed {
  overflow: hidden;
}

.nav-tabs .el-tabs__nav-scroll {
  left: -1px;
}

.frame-layout .xdh-layout__main {
  overflow: hidden;
}

code {
  background-color: #f9fafc;
  border: 1px solid #eaeefb;
  border-radius: 4px;
}

.hljs {
  line-height: 1.8;
  font-family: Menlo, Monaco, Consolas, Courier, monospace;
  font-size: 12px;
  margin-bottom: 25px;
  border-radius: 4px;
  -webkit-font-smoothing: auto;
}

.tip {
  padding: 8px 16px;
  background-color: #ECF8FF;
  border-radius: 4px;
  border-left: #50bfff 5px solid;
  margin: 20px 0;

  p {
    margin: 0;
  }

  code {
    background-color: rgba(255, 255, 255, .7);
    color: #445368;
  }
}

.warning {
  padding: 8px 16px;
  background-color: #fff6f7;
  border-radius: 4px;
  border-left: #FE6C6F 5px solid;
  margin: 20px 0;

  p {
    margin: 0;
  }

  code {
    background-color: rgba(255, 255, 255, .7);
    color: #445368;
  }

}

.content {
  > table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    font-size: 14px;
    margin-bottom: 45px;
    line-height: 1.5em;

    strong {
      font-weight: normal;
    }

    td, th {
      border: 1px solid #d8d8d8;
      padding: 10px;
      max-width: 250px;
    }

    th {
      text-align: left;
      white-space: nowrap;
      color: #666;
      font-weight: normal;
    }

    td {
      color: #333;
    }

    th:first-child, td:first-child {
      padding-left: 10px;
    }
  }
}

.page-container {
  padding: 20px;

  h2 {
    font-size: 28px;
    color: #1f2d3d;
    margin: 0;
  }

  h3 {
    font-size: 22px;
  }

  h2, h3, h4, h5 {
    font-weight: normal;
    color: #1f2f3d;

    &:hover a {
      opacity: .4;
    }

    a {
      float: left;
      margin-left: -20px;
      opacity: 0;
      cursor: pointer;

      &:hover {
        opacity: .4;
      }
    }
  }

  p {
    font-size: 14px;
    color: #5e6d82;
    line-height: 1.5em;
  }

  .tip {
    padding: 8px 16px;
    background-color: #ECF8FF;
    border-radius: 4px;
    border-left: #50bfff 5px solid;
    margin: 20px 0;

    code {
      background-color: rgba(255, 255, 255, .7);
      color: #445368;
    }
  }

  .warning {
    padding: 8px 16px;
    background-color: #fff6f7;
    border-radius: 4px;
    border-left: #FE6C6F 5px solid;
    margin: 20px 0;

    code {
      background-color: rgba(255, 255, 255, .7);
      color: #445368;
    }

  }

  .table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    font-size: 14px;
    margin-bottom: 45px;
    line-height: 1.5em;

    strong {
      font-weight: normal;
    }

    td, th {
      border-bottom: 1px solid #d8d8d8;
      padding: 10px;
      max-width: 250px;
    }

    th {
      text-align: left;
      white-space: nowrap;
      color: #666;
      font-weight: normal;
    }

    td {
      color: #333;
    }

    th:first-child, td:first-child {
      padding-left: 10px;
    }
  }

}

.guide-content {
  h4 {
    font-size: 16px;
  }

  li {
    line-height: 1.5em;
    font-size: 14px;
  }
}

.demo {
  margin: 20px 0;
}

.sidebar__popper {
  .el-menu-item {
    height: 40px;
    line-height: 40px;
  }
}

.app-init > section {
  width: 100%;
  height: 100%;
}

.page-preview {
  width: 100%;
  height: 100%;
}

.page-code > pre {
  margin: 0;

  .hljs {
    margin-bottom: 0;
  }
}

.demo-block {
  .el-row, .block {
    margin-bottom: 20px;
  }

}
